﻿@model ADShop.Models.OrderProduct

@{
    ViewBag.Title = "Create";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutPage_Admin.cshtml";
}

<h2>Create OrderProduct</h2>


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>OrderProduct</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDOrder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDOrder)
            @Html.ValidationMessageFor(model => model.IDOrder)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDUser)
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDUser", String.Empty)
            @Html.ValidationMessageFor(model => model.IDUser)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Product.NameProduct)
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDProduct", String.Empty)
            @Html.ValidationMessageFor(model => model.IDProduct)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Quantity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Quantity)
            @Html.ValidationMessageFor(model => model.Quantity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TotalPrice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TotalPrice)
            @Html.ValidationMessageFor(model => model.TotalPrice)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Recipient)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Recipient)
            @Html.ValidationMessageFor(model => model.Recipient)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AddressRecipient)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AddressRecipient)
            @Html.ValidationMessageFor(model => model.AddressRecipient)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EmailRecipient)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EmailRecipient)
            @Html.ValidationMessageFor(model => model.EmailRecipient)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PhoneRecipient)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PhoneRecipient)
            @Html.ValidationMessageFor(model => model.PhoneRecipient)
        </div>



        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ShipMethod.IDShipMethod)
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDShipMethod", String.Empty)
            @Html.ValidationMessageFor(model => model.IDShipMethod)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PaymentMethod.IDPaymentMethod)
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDPaymentMethod", String.Empty)
            @Html.ValidationMessageFor(model => model.IDPaymentMethod)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}


<div>
    <p>
        @Html.ActionLink("Bảng Đơn Đặt Hàng", "Index", null, new { @class = "label label-default" })
    </p>
</div>




